<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\Snowflake\MetaGenerator\RedisMilliSecondMetaGenerator;
use Hyperf\Snowflake\MetaGenerator\RedisSecondMetaGenerator;
use Hyperf\Snowflake\MetaGeneratorInterface;

return [
    //'begin_second' => MetaGeneratorInterface::DEFAULT_BEGIN_SECOND,
    'begin_second'  => 1601510888,
    'begin_date'    => strtotime("2018-01-01"),
    'workerId'      => 0,//0-31
    'dataCenterId'  => 0,//0-31
    'oms'   => [
        'begin_second'      => strtotime("2018-01-01"),
        'workerId'          => 0,
        'dataCenterId'      => 0,
    ],
    'goods'   => [
        'begin_second'      => strtotime("2017-12-30"),
        'workerId'          => 1,
        'dataCenterId'      => 1,
    ],
    'log'   => [
        'begin_second'      => strtotime("2023-08-14"),
        'workerId'          => 0,
        'dataCenterId'      => 0,
    ],
    'other'   => [
        'begin_second'      => strtotime("2017-12-29"),
        'workerId'          => 0,
        'dataCenterId'      => 0,
    ],    
    RedisMilliSecondMetaGenerator::class => [
        'pool' => 'default',
        // 用于计算 WorkerId 的 Key 键
        'key' => RedisMilliSecondMetaGenerator::DEFAULT_REDIS_KEY
    ],
    RedisSecondMetaGenerator::class => [
        'pool' => 'default',
        // 用于计算 WorkerId 的 Key 键
        'key' => RedisMilliSecondMetaGenerator::DEFAULT_REDIS_KEY
    ],
];
